<%@ page title="" language="C#" masterpagefile="~/EmpSite.master" autoeventwireup="true" inherits="empLeaveApplicationList, App_Web_xtpq4zcp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

<style>
                        .card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
      margin-top: -25px;
    padding: 7px !important;
}
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 8px 8px !important;
    vertical-align: middle;
    border-color: #ddd;
}
</style>
     <asp:Label ID="lblmsg" runat="server" Font-Bold="True" Font-Size="18pt" 
        ForeColor="#0099CC" Text="&nbsp;"></asp:Label>
      
     
       <div class="main-panel">
        <div class="content">
        <div class="container" id="empleaveapplicationlist1" runat="server">
<div class="row dash-pane2">	

<div class="card">
                <div class="card-header card-header-warning">
                  <h4 class="card-title"><i class="fa fa-list fa-fw"></i>
                                    <asp:Label ID="lblLeaveApplicationList" runat="server" Text="Leave Application List"></asp:Label></h4>
              
                </div>
                <div class="card-body table-responsive">
                <div class="table-responsive" style="height:250px; overflow:scroll">
                  <asp:GridView ID="Grid1" runat="server"  class="table table-bordered table-hover table-striped"
          AutoGenerateColumns="False" CellPadding="3" DataKeyNames="RwId" 
          Width="95%"
          style="font-family: Verdana; font-size: 8pt" ondatabound="Grid1_DataBound"  >
         
           <Columns>
              <asp:TemplateField HeaderText="Select">
                  <HeaderStyle CssClass="tdsubcellheadingfont" ForeColor="Black" Height="21px" Width="30px" />
                  <ItemTemplate>
                      <asp:CheckBox ID="cbRows" runat="server" />
                  </ItemTemplate>
                  <ItemStyle CssClass="gItmTxt" Height="21px" Width="30px"/>  
                   <FooterStyle Width="30px" Wrap="False" />     
              </asp:TemplateField>
              <asp:HyperLinkField DataNavigateUrlFields="RwId" 
                  DataNavigateUrlFormatString="empLeaveApproval.aspx?RowId={0}"  ControlStyle-ForeColor="#006699"
                  DataTextField="Empname" HeaderText="Employee Name" 
                  SortExpression="Empname">
              <ItemStyle CssClass="gItmTxt" Height="21px" HorizontalAlign="Left" 
                  Width="250px" Wrap="False" />
              <HeaderStyle CssClass="tdsubcellheadingfont" ForeColor="Black" 
                  HorizontalAlign="Left" Width="100px" Wrap="true" />
              <ControlStyle Width="250px" />
              <FooterStyle Width="250px" Wrap="False" />
              </asp:HyperLinkField>
              <asp:BoundField DataField="ApplicationDate" HeaderText="Leave Date" SortExpression="ApplicationDate">
                <ItemStyle CssClass="gItmTxt" HorizontalAlign="Left" Height="21px" Width="300px" Wrap="true"/>
                <HeaderStyle CssClass="tdsubcellheadingfont" ForeColor="Black" Height="21px" HorizontalAlign="Left"
                    Width="150px" Wrap="False" />
                <FooterStyle Width="150px" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="Dept_name" HeaderText="Department Name" SortExpression="Dept_name">
                <ItemStyle CssClass="gItmTxt" HorizontalAlign="Left" Height="21px" Width="100px" Wrap="true"/>
                <HeaderStyle CssClass="tdsubcellheadingfont" ForeColor="Black" Height="21px" HorizontalAlign="Left"
                    Width="150px" Wrap="False" />
                <FooterStyle Width="100px" Wrap="False" />
            </asp:BoundField>
             <asp:BoundField DataField="LTypeName" HeaderText="Leave Type" SortExpression="LTypeName">
                <ItemStyle CssClass="gItmTxt" HorizontalAlign="Left" Height="21px" Width="200px" Wrap="true"/>
                <HeaderStyle CssClass="tdsubcellheadingfont" ForeColor="Black" Height="21px" HorizontalAlign="Left"
                    Width="200px" Wrap="False" />
                <FooterStyle Width="200px" Wrap="False" />
            </asp:BoundField>

                  <asp:BoundField DataField="ApprovedStatus" HeaderText="Status" SortExpression="ApprovedStatus">
                <ItemStyle CssClass="gItmTxt" HorizontalAlign="Left" Height="21px" Width="200px" Wrap="true"/>
                <HeaderStyle CssClass="tdsubcellheadingfont" ForeColor="Black" Height="21px" HorizontalAlign="Left"
                    Width="100px" Wrap="False" />
                <FooterStyle Width="100px" Wrap="False" />
            </asp:BoundField>
          </Columns>
         
      </asp:GridView> 
      </div>
           <div class="row" style="margin-left:auto; margin-right:auto; display:table; margin-top:15px;">
               <asp:Button ID="Btnadd" runat="server" Text="Delete" onclick="Button1_Click" 
        type="button" class="btn btn-success " /><i class="fa fa-plus;"></i>
                    <i  class="fa fa-trash-o;"></i>&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" 
            Text="close" class=" btn btn-danger"
            onclick="Button1_Click1"  /><i></i>
              </div>
        <script type="text/javascript" src="jquery.min.js" ></script>
    <script type="text/javascript" src="quicksearch.js"></script>
    <script type="text/javascript">
        $(function () {
            $('.search_textbox').each(function (i) {
                $(this).quicksearch("[id*=Grid1] tr:not(:has(th))", {
                    'testQuery': function (query, txt, row) {
                        return $(row).children(":eq(" + i + ")").text().toLowerCase().indexOf(query[0].toLowerCase()) != -1;
                    }
                });
            });
        });
    </script>
     
                </div>
              </div>

         
					

            </div> </div> </div> </div>
                           
    </center>
    

</asp:Content>

